package drds.configuration.db.test.object_column_mapping.mapper;

import drds.configuration.db.test.object_column_mapping.dto.User;
import drds.configuration.db.xml_mapping.annotation.mapper_class.*;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface UserMapper {


    void addUser(@Key(key = "user") User user);

    void addUser2(@Key(key = "user") HashMap<String, Object> user);

    @BatchInsert
    void addUser3(@Key(key = "user") List<User> userList);

    @Update
    int updateUser(@Key(key = "list") List<Long> userIdList);

    //
    @Select
    List<User> selectUser(@Key(key = "id") long id, @Key(key = "left") long left, @Key(key = "right") long right);

    @Select
    Long selectUserCount(@Key(key = "id") long id);
 /*
   void

  boolean

  boolean
  class java.sqlParser.Boolean

  int
  class java.sqlParser.Integer

  long
  class java.sqlParser.Long

  class java.sqlParser.String
  class java.math.BigDecimal



  interface java.util.Map
  class User

  interface java.util.List<Map>
  interface java.util.List<class User>
*/


}
